﻿using KZ.Utilities;

namespace KZ.Express.H.ENT
{
    public enum Objects
    {
        Customer = 1,
        CustomerGroup = 2,
        OriginalPriceList = 3,
        CustomerPriceList = 4,
        Zone = 5,
        Account = 6,
        Role = 7,
        LoginAccount = 8,
        CSOrder = -1,
        MenuOrder = 9,
        Statistic = 10,
        CheckPrice = 11,
        Logs = 12,
        User = 13,
        Supplier = 14,
        Carrier = 15,
    }

    public class ObjectENT : BaseENT
    {
        [Output]
        public int ObjectID { get; set; }

        [Required]
        public string ObjectCode { get; set; }

        [Required]
        public string ObjectName { get; set; }

        [Required]
        public string DisplayOrder { get; set; }

        [Required]
        public string ObjectType { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "Objects"; } }

        [NotInsertUpdate]
        public override string PrimaryKey { get { return "ObjectID"; } }


        [NotInsertUpdate]
        public override string InsertProcedure { get { return "proc_Object_Insert"; } }

        [NotInsertUpdate]
        public override string UpdateProcedure { get { return "proc_Object_Update"; } }

        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_Object_Select"; } }
    }
}
